package com.mycompany.api;
import android.widget.*;
import android.util.*;
import android.content.*;
import java.util.*;

public class FormLayout extends LinearLayout
{
	//private GridLayout data[];
	private Map map;
	public FormLayout(Context c){
		super(c);
	}
	public FormLayout(Context c,AttributeSet as){
		super(c,as);
	}
	public Map getdata(){
		map=new HashMap();
		for(int i=1;i<getChildCount();i++){
			GridLayout l=(GridLayout) getChildAt(i);
			EditText k=(EditText) l.getChildAt(0),v=(EditText) l.getChildAt(1);
			map.put(k.getText().toString(),v.getText().toString());
		}
		return map;
	}
}
